<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>留言板</title>
  <link rel="stylesheet" href="lib/bootstrap.min.css">
  <link rel="stylesheet" href="lib/iconfont.css">
  <link rel="stylesheet" href="css/message.css">
</head>

<body>
  <div class="text-end p-1">
    <span data-bs-toggle="modal" data-bs-target="#addDialog" class="btn btn-primary">我要发帖</span>
  </div>

  <div id="container">
    <!-- 模板样式 头是发帖的用户信息  身体是标题  脚是时间和回贴数 -->
    <div class="card m-3">
      <div class="card-header">发帖人:盼盼</div>
      <div class="card-body">震惊！！！戴文标和高鹏竟是这种关系。。。</div>
      <div class="card-footer">
        <span>2020-11-11 11:11:11</span>
        <span>评论数:88</span>
      </div>
    </div>
  </div>


  <!-- 分页的部分 -->
  <nav class="d-flex p-2 justify-content-center">
    <ul class="pagination">

      <li id="btnPre" class="page-item">
        <a href="javascript:void(0)" class="page-link">&lt;&lt;</a>
      </li>

      <li class="page-item">
        <a href="javascript:void(0)" class="page-link">当前页码/分页总数/记录数: <span id="spPage"></span></a>
      </li>

      <li id="btnNext" class="page-item">
        <a href="javascript:void(0)" class="page-link">&gt;&gt;</a>
      </li>


    </ul>
  </nav>


  <div id="divLoading"></div>

  <!-- 发帖的对话框 -->
  <div id="addDialog" class="modal fade" data-bs-backdrop="static">
    <div class="modal-dialog">
      <div class="modal-content">


        <div class="modal-header">发帖</div>
        <div class="modal-body">
          <div class="mb-2">
            <input id="txtTitle" class="form-control" placeholder="标题" type="text">
          </div>

          <div class="mb-2">
            <textarea id="txtInfo" class="form-control" placeholder="帖子内容" rows="10"></textarea>
          </div>

          <div id="divError" class="mb-2 text-danger"></div>

        </div>

        <div class="modal-footer">
          <span id="btnPublish" class="btn btn-primary">发布</span>
          <span data-bs-toggle="modal" data-bs-target="#addDialog" class="btn btn-danger">关闭</span>
        </div>

      </div>
    </div>
  </div>
  <script src="lib/bootstrap.bundle.min.js"></script>
  <script src="lib/axios.min.js"></script>
  <script src="lib/qs.min.js"></script>
  <script src="lib/spark-md5.min.js"></script>
  <script src="lib/server.js"></script>

  <script src="js/message.js"></script>
</body>

</html>